package com.github.pig.admin.model.zhgl.notification;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 通知公告
 * </p>
 *
 * @author xiaosa
 * @since 2018-07-10
 */
@TableName("notification_info")
public class NotificationInfo extends Model<NotificationInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 类型
     */
    private String type;
    @TableField(exist = false)
    private String label;
    /**
     * 小区ID
     */
    @TableField("community_id")
    private String communityId;
    @TableField(exist = false)
    private String communityName;
    /**
     * 头部图片
     */
    @TableField("pic_top")
    private String picTop;
    /**
     * 正文图片
     */
    @TableField("pic_body")
    private String picBody;
    /**
     * 通知标题
     */
    private String title;
    /**
     * 通知内容
     */
    private String body;
    @TableField("create_by")
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField("create_date")
    private Date createDate;
    @TableField("update_by")
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField("update_date")
    private Date updateDate;
    @TableField("del_flag")
    private String delFlag;

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getPicTop() {
        return picTop;
    }

    public void setPicTop(String picTop) {
        this.picTop = picTop;
    }

    public String getPicBody() {
        return picBody;
    }

    public void setPicBody(String picBody) {
        this.picBody = picBody;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "NotificationInfo{" +
        ", id=" + id +
        ", type=" + type +
        ", communityId=" + communityId +
        ", picTop=" + picTop +
        ", picBody=" + picBody +
        ", title=" + title +
        ", body=" + body +
        ", createBy=" + createBy +
        ", createDate=" + createDate +
        ", updateBy=" + updateBy +
        ", updateDate=" + updateDate +
        ", delFlag=" + delFlag +
        "}";
    }
}
